import VueEcharts from 'vue-echarts';
import *as echarts from 'echarts';
import type { App } from 'vue';

export const registerEcharts = (app: App) => {
    //注册全局组件
    app.component('VueEcharts', VueEcharts);

    //全局挂载
    app.config.globalProperties.$echarts = echarts;
}